import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-bind',
  templateUrl: './bind.component.html',
  styleUrls: ['./bind.component.css']
})
export class BindComponent implements OnInit {
  imgUrl:string = "http://placehold.it/400x220";
  
  divClass:string;
  isC:boolean = false;
  size:number = 5;
  constructor() { 
    setTimeout(()=>{
      this.divClass = 'a';
      this.isC = true;
    },3000)

  }

  ngOnInit() {
  }

  doOnClick(event: any){
    console.log(event);
  }
  doOnInput(event: any){
    console.log(event.target.value);
    console.log(event.target.getAttribute("value"));
  }

}
